<?php if (!defined('THINK_PATH')) exit();?><!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
        <title></title>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/arc.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css" />
    <script>
            var url = "__URL__";
    </script>
       <script type="text/javascript" src="__PUBLIC__/Admin/js/class.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/bg.js"></script>
</head>
<title></title>
<body>
    <div class="top_addres">
        <div class="addres">添加属性</div> 
    </div>
        <table class="table3">
                <tr>
                    <th>所属分类:</th>
                    <td>
                        <span class="checkType pid" pid="<?php echo ($type["cid"]); ?>">
                            <?php echo ($type["classname"]); ?>
                        </span>
                    </td>
               </tr>
            <tr>
                <th>分类名称:</th>
                <td><input type="text" name="classname" class="w200"></td>
            </tr>
            <?php if(isset($_GET['cid'])): ?><tr class="isType">
                    <th>类型:</th>
                    <td>
                        <span class="checkType tp" tid="0">
                            选择类型
                        </span>
                    </td>
               </tr><?php endif; ?>
            <tr>
                <td colspan="2">
                    <span class="btn">提交</span><a class="btn1" href="<?php echo U('index');?>">返回</a</td>
            </tr>
        </table>
        <div class="float_bg">
           <div class='type1 checkclass1'>
                 <div class='float_top'>
                            <h2>选择分类</h2>
                            <a href="javascript:;" class='float_close'></a>
                    </div>
                <ul class="type checkclass">
                    <?php if(is_array($classData)): foreach($classData as $key=>$m): ?><li>
                                      <a href="javascript:;"  cid='<?php echo ($m["cid"]); ?>' class="typeData classbtn">
                                        <?php if($m["lv"] != 0): echo ($m["html"]); ?>|-<?php endif; ?><span><?php echo ($m["classname"]); ?></span></a>
                                  </li><?php endforeach; endif; ?>
             </ul>
            </div>
             <div class='type1'>
              
                  <div class='float_top'>
                            <h2>选择类型</h2>
                            <a href="javascript:;" class='float_close'></a>
                    </div>
                  <ul class="type typecheck">
                    <?php if(is_array($typeData)): foreach($typeData as $key=>$n): ?><li>
                        <a href="javascript:;"  id='<?php echo ($n["id"]); ?>' class="typeData tpdata"><?php echo ($n["name"]); ?></a>
                    </li><?php endforeach; endif; ?>
             </ul>
           </div>
       </div>
       <div class='mesage'></div>
</body>
</html>